package model;

import java.io.Serializable;

@SuppressWarnings("serial")
public class User implements Serializable {

	
	private int idperson;
	private String nume;
	private String prenume;
	private String telefon;
	private String mobil;
	private String email;
	private Functie functie;
	private String descriere;
	private String username;
	private String password;
	private Rol rol;

	public User() {
		super();
	}

	public User(int idperson, String nume, String prenume, String telefon,
			String mobil, String email, Functie functie, String descriere,
			String username, String password, Rol rol) {
		super();
		this.idperson = idperson;
		this.nume = nume;
		this.prenume = prenume;
		this.telefon = telefon;
		this.mobil = mobil;
		this.email = email;
		this.functie = functie;
		this.descriere = descriere;
		this.username = username;
		this.password = password;
		this.rol = rol;
	}

	public Functie getFunctie() {
		return functie;
	}

	public void setFunctie(Functie functie) {
		this.functie = functie;
	}

	public Rol getRol() {
		return rol;
	}

	public void setRol(Rol rol) {
		this.rol = rol;
	}

	public String getNume() {
		return nume;
	}

	public void setNume(String nume) {
		this.nume = nume;
	}

	public String getPrenume() {
		return prenume;
	}

	public void setPrenume(String prenume) {
		this.prenume = prenume;
	}

	public String getTelefon() {
		return telefon;
	}

	public void setTelefon(String telefon) {
		this.telefon = telefon;
	}

	public String getMobil() {
		return mobil;
	}

	public void setMobil(String mobil) {
		this.mobil = mobil;
	}

	public String getDescriere() {
		return descriere;
	}

	public void setDescriere(String descriere) {
		this.descriere = descriere;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public int getIdperson() {
		return idperson;
	};

	public void setIdperson(int idperson) {
		if (this != null)
			this.idperson = idperson;
	};

}
